body {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    background: #fafafa;
    color: #333;
    overflow-x: hidden;
}
a{
    text-decoration: none !important;
}
.gradient {
    background: linear-gradient(135deg, #ff7a00, #ff3e7f);
}
.app {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    margin-bottom: 70px;
}
.view {
    display: none;
}
.view.active {
    display: block;
}

/* header */
.header {
    padding: 20px;
    color: white;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}
.profile {
    display: flex;
    align-items: center;
    gap: 10px;
}
.profile img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
}
.name {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}
.tier {
    font-weight: 400;
    font-size: 13px;
    color: #fff;
}
.brand-logo img {
    width: 120px;
    height: auto;
    background: #FFF;
    border-radius: 5px;
}
.points {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.point-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    margin: 0 5px;
}
.point-card .label {
    font-size: 13px;
    font-weight: 400;
}
.point-card .value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-top: 3px;
}

/* menu grid */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 15px;
}
.grid-item {
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 15px 5px;
    background: white;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.grid-item:hover {
    transform: scale(1.04);
}
.grid-item svg {
    width: 26px;
    height: 26px;
    stroke: url(#gradStroke);
    fill: none;
    stroke-width: 2;
    margin-bottom: 5px;
}
.grid-item span {
    display: block;
    font-size: 13px;
    color: #333;
    font-weight: 400;
}

/* slider */
.slider {
    padding: 0 15px 10px;
}
.slide {
    background: linear-gradient(135deg, #ff7a00, #ff3e7f);
    color: white;
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.slide h4 {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}
.slide p {
    font-size: 13px;
    margin: 3px 0 0;
    font-weight: 400;
}
.slide img {
    width: 50px;
    height: 50px;
}

/* merchant list */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    margin-top: 10px;
}
.section-header h3 {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}
.see-more {
    color: #ff3e7f;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}
.merchant-list {
    padding: 15px;
}
.merchant {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.merchant:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.merchant img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}
.merchant h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #222;
}
.merchant p {
    font-size: 12px;
    margin: 2px 0 0;
    color: #777;
    font-weight: 400;
}
.pts {
    margin-left: auto;
    font-weight: 600;
    font-size: 14px;
    color: #ff3e7f;
}

/* shop page */
.shop-top {
    display: flex;
    align-items: center;
    padding: 15px;
    color: white;
}
.shop-top .back {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    width: 30px;
    cursor: pointer;
    margin-right: 10px;
}
.shop-header {
    text-align: center;
    padding: 20px;
}
.shop-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}
.shop-desc {
    padding: 0 20px 20px;
    font-size: 14px;
    color: #555;
}
.claim-box {
    margin: 0 20px 20px;
    background: linear-gradient(135deg, #ff7a00, #ff3e7f);
    color: white;
    padding: 15px;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
}
.qr-box {
    text-align: center;
    padding-bottom: 20px;
}
.qr {
    width: 120px;
    height: 120px;
    background: #eee;
    margin: 0 auto 10px;
    border-radius: 8px;
}

/* footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 10px 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}
.nav-icon {
    width: 26px;
    height: 26px;
    stroke: #999;
    fill: none;
    stroke-width: 2;
}
.camera {
    background: linear-gradient(135deg, #ff7a00, #ff3e7f);
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 10px rgba(255, 62, 127, 0.3);
}
.camera svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}
.powered {
    text-align: center;
    font-size: 12px;
    color: #777;
    padding: 20px 0 80px;
    font-weight: 400;
}
.jk-wordmark {
    font-weight: 700;
    background: linear-gradient(135deg, #ff7a00, #ff3e7f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-box {
    background: white;
    padding: 30px;
    text-align: center;
}

.login-button {
    width: 100%;
    background: #ff7a00;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}
.login-button:hover {
    background: #d46802;
}
.error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}