:root{
    --bg:#0d1117;
    --card:#161b22;
    --card2:#1c2128;

    --green:#00d084;
    --blue:#2f81f7;
    --yellow:#f1c40f;
    --red:#ff4d4f;

    --text:#f0f6fc;
    --text2:#8b949e;

    --border:#30363d;
}

/* ===== 全域設定 ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 商城背景 ===== */

body{
    background: linear-gradient(180deg,#0d1117,#161b22);
    color:#f0f6fc;
    min-height:100vh;
}

.container{
    max-width:1300px;
    margin:auto;
    padding:25px;
}

body{
    margin:0;
    padding:0;

    background:#0d1117;

    color:var(--text);

    font-family:
    "Microsoft JhengHei",
    sans-serif;
}

body {
    font-family: "Microsoft JhengHei", Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
}

/* ===== 導覽列 ===== */

nav{
    position:sticky;
    top:0;
    z-index:999;

    background:rgba(22,27,34,.9);
    backdrop-filter:blur(12px);

    padding:18px 30px;

    border-bottom:1px solid #30363d;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 25px;
    font-size: 18px;
    transition: 0.3s;
}

nav a:hover{
    color:#2f81f7;
}

/* ===== 內容 ===== */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

/* ===== 卡片 ===== */

.card{
    background:#ffffff;
    color:#222;

    border:none;

    border-radius:20px;

    padding:30px;

    box-shadow:0 10px 30px rgba(0,0,0,.15);
}

.card h1 {
    margin-bottom: 20px;
    color: #2563eb;
}

.card p {
    font-size: 18px;
    line-height: 1.8;
}



.card b,
.card strong{
    color:#111;
}
/* ===== 按鈕 ===== */

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: .3s;
}

.btn:hover {
    background: #1d4ed8;
}

/* ===== 頁尾 ===== */

footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px;
    color: #666;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

label {
    font-weight: bold;
}

button{

    background:var(--green);

    color:white;

    border:none;

    border-radius:10px;

    padding:10px 18px;

    cursor:pointer;

    transition:.2s;
}

button:hover{

    transform:translateY(-2px);

    box-shadow:0 8px 20px rgba(0,208,132,.3);

}

.product-detail img{
    width:100%;
    max-width:500px;
    display:block;
    margin:20px auto;
    border-radius:15px;
    object-fit:cover;
    box-shadow:0 10px 25px rgba(0,0,0,.2);
}

.product-price{
    font-size:34px;
    color:#00d084;
    font-weight:bold;
}

/* ===== 商城商品 ===== */

.product-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));

    gap:20px;

}

.product-card{
    position: relative;
    background:#fff;
    border-radius:20px;
    overflow:hidden;

    display:flex;
    flex-direction:column;

    height:100%;
}

.product-card:hover{

    transform:translateY(-5px);

    box-shadow:0 15px 35px rgba(0,0,0,.15);

}

.product-card img{
    width:100%;
    aspect-ratio:16/10;
    object-fit:cover;
    display:block;
}

.product-card h3{
    margin-top:15px;
}

.product-card button{
    width:100%;
    background:#3B82F6;
    color:white;
    border:none;
    padding:12px;
    border-radius:8px;
    cursor:pointer;
}

.product-card button:hover{
    background:#2563EB;
}
.chat-btn{
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
}

.product-image{

    position: relative;   /* 新增 */

    width:100%;

    aspect-ratio:1/1;

    overflow:hidden;

    background:#f3f4f6;

}

.product-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

}
.favorite-btn{
    position:absolute;
    top:12px;
    right:12px;

    width:40px;
    height:40px;

    background:rgba(255,255,255,.95);
    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;
    font-size:22px;

    box-shadow:0 2px 8px rgba(0,0,0,.2);
    z-index:100;
    transition:.2s;
}

.favorite-btn:hover{
    transform:scale(1.1);
}

.favorite-btn .fa-solid{
    color:#ff3b5c;
}

.favorite-btn .fa-regular{
    color:#888;
}



.product-info{
    display:flex;
    flex-direction:column;
    flex:1;
    padding:15px;
}

.product-info h3{

    font-size:18px;

    margin-bottom:10px;

    overflow:hidden;

    white-space:nowrap;

    text-overflow:ellipsis;

}

.product-category{

    color:#666;

    font-size:14px;

    margin-bottom:8px;

}

.product-price{

    font-size:26px;

    font-weight:bold;

    color:#16a34a;

    margin-bottom:10px;

}

.chat-btn button{
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
}

.chat-btn button:hover{
    background:#218838;
}
.chat-float {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 65px;
    height: 65px;

    background: #28a745;
    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;

    text-decoration: none;

    box-shadow: 0 4px 12px rgba(0,0,0,.3);

    z-index: 9999;

    transition: .2s;
}

.chat-float:hover{
    transform: scale(1.1);
    background:#1f8b38;
}

a{

    color:var(--blue);

    text-decoration:none;

}

a:hover{

    opacity:.8;

}

.tag{
    display:inline-block;
    background:#2f81f7;
    color:white;
    padding:6px 15px;
    border-radius:30px;
    font-size:14px;
}

.description{
    background:#f5f7fb;
    color:#333;
    padding:20px;
    border-radius:15px;
    margin-top:20px;
    line-height:1.8;
}

/* ===== 首頁 Banner ===== */

.hero{

    text-align:center;

    padding:80px 20px;

    border-radius:25px;

    margin-bottom:40px;

    background:
    linear-gradient(
    135deg,
    #1e3c72,
    #2a5298
    );

    color:white;

    box-shadow:0 10px 35px rgba(0,0,0,.35);

}

.hero h1{

    font-size:52px;

    margin-bottom:10px;

}

.hero h2{

    color:#9ee6ff;

    margin-bottom:15px;

}

.hero p{

    font-size:22px;

    opacity:.9;

}

.hero-info{

    margin-top:30px;

}

.hero-info span{

    display:inline-block;

    margin:8px;

    padding:10px 18px;

    background:rgba(255,255,255,.15);

    border-radius:30px;

}

.hero-btn{

    margin-top:25px;

    background:#00d084;

    color:white;

    font-size:20px;

    padding:15px 40px;

    border:none;

    border-radius:50px;

    cursor:pointer;

}

.hero-btn:hover{

    transform:scale(1.05);

}

/* ===== 手機選單 ===== */

#menu-btn{
    position: fixed;
    top: 15px;
    right: 15px;

    width: 50px;
    height: 50px;

    font-size: 28px;

    border: none;
    border-radius: 12px;

    background: #2f81f7;
    color: white;

    cursor: pointer;

    z-index: 1001;

    display: none;
}

#mobile-menu{
    position: fixed;

    top: 0;
    right: -280px;

    width: 260px;
    height: 100%;

    background: #161b22;

    padding-top: 80px;

    transition: .3s;

    z-index: 1000;
}

#mobile-menu a{
    display: block;

    color: white;

    text-decoration: none;

    padding: 16px 25px;

    border-bottom: 1px solid #30363d;
}

#mobile-menu a:hover{
    background: #2f81f7;
}

@media (max-width:768px){

    #menu-btn{
        display:block;
    }

    nav{
        display:none;
    }

}

table{
    width:100%;
    font-size:14px;
}

th,
td{
    padding:8px;
}

@media(max-width:768px){

table{

    display:block;

    overflow-x:auto;

    white-space:nowrap;

}

}

/* ===== 我的商品 ===== */

.product-table{

    width:100%;

    border-collapse:collapse;

    margin-top:25px;

}

.product-table th{

    background:#1f2937;

    color:white;

    padding:15px;

}

.product-table td{

    padding:15px;

    text-align:center;

    border-bottom:1px solid #ddd;

}

.action-buttons{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.action-buttons a{

    text-decoration:none;

}

.btn-edit{

    background:#3b82f6;

    color:white;

    padding:10px;

    border-radius:8px;

    text-align:center;

}

.btn-account{

    width:100%;

    background:#10b981;

    color:white;

    border:none;

    padding:10px;

    border-radius:8px;

    cursor:pointer;

}

.btn-toggle{

    background:#ef4444;

    color:white;

    padding:10px;

    border-radius:8px;

    text-align:center;

}

@media (max-width:768px){

    .product-table{
    
        display:block;
    
        overflow-x:auto;
    
        white-space:nowrap;
    
    }
    
    .product-table th,
    .product-table td{
    
        padding:10px;
    
        font-size:14px;
    
    }
    
    .action-buttons{
    
        min-width:140px;
    
    }
    
    }
/* ========= 商城 ========= */

.shop-title{

    font-size:32px;

    margin-bottom:25px;

}

.shop-search{

    display:flex;

    gap:12px;

    margin-bottom:20px;

}

.shop-search input{

    flex:1;

    padding:14px;

    border-radius:12px;

    border:1px solid #ddd;

    font-size:16px;

}

.shop-search button{

    padding:14px 25px;

    border:none;

    border-radius:12px;

    background:#ff6b35;

    color:white;

    font-weight:bold;

    cursor:pointer;

}

.shop-btn{
    display:block;
    width:100%;
    margin-top:auto;

    background:#3b82f6;
    color:#fff;
    text-align:center;

    padding:12px 0;

    border-radius:12px;

    text-decoration:none;

    font-weight:700;

    font-size:15px;

    transition:.25s;
}

.shop-btn:hover{
    background:#2563eb;
    transform:translateY(-2px);
}

.category-bar{

    display:flex;

    gap:12px;

    overflow-x:auto;

    margin-bottom:20px;

    padding-bottom:8px;

}

.category-bar::-webkit-scrollbar{

    display:none;

}

.category-btn{

    white-space:nowrap;

    padding:10px 18px;

    border-radius:30px;

    background:white;

    color:#333;

    border:1px solid #ddd;

    text-decoration:none;

    transition:.3s;

}

.category-btn:hover{

    background:#2563eb;

    color:white;

}

.shop-filter{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:15px;

    margin-bottom:25px;

}

.shop-filter select{

    padding:14px;

    border-radius:12px;

    border:1px solid #ddd;

    font-size:15px;

}

@media(max-width:768px){

    .product-grid{
    
        grid-template-columns:repeat(2,1fr);
    
        gap:12px;
    
    }
    
    .product-info{
    
        padding:10px;
    
    }
    
    .product-info h3{
    
        font-size:15px;
    
    }
    
    .product-price{
    
        font-size:20px;
    
    }
    
    }
    .product-buttons{
        margin-top:auto;
        display:flex;
        flex-direction:column;
        gap:10px;
    }
    
    .product-buttons a{
    
        display:block;
    
        width:100%;
    
        text-align:center;
    
        text-decoration:none;
    
        padding:12px 0;
    
        border-radius:12px;
    
        font-size:15px;
    
        font-weight:bold;
    
        transition:.25s;
    
    }
    
    .btn-view{
    
        background:#2563eb;
    
        color:white;
    
    }
    
    .btn-view:hover{
    
        background:#1d4ed8;
    
    }
    
    .btn-cart{
    
        background:#10b981;
    
        color:white;
    
    }
    
    .btn-cart:hover{
    
        background:#059669;
    
    }

    /* 賣家訂單表格 */
    .table-wrap{
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: 15px;
    }

    .order-table{
        width: 100%;
        min-width: 900px;   /* 欄位多，手機可左右滑 */
        border-collapse: collapse;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
    }

    .order-table th,
    .order-table td{
        border: 1px solid #ddd;
        padding: 12px;
        text-align: center;
        white-space: nowrap;
    }   

    .order-table th{
        background: #f5f7fb;
        font-weight: 700;
    }

    .order-table tr:nth-child(even){
        background: #fafafa;
    }

    /* 手機版 */
    @media (max-width: 768px){
        .order-table th,
        .order-table td{
            padding: 10px 8px;
            font-size: 14px;
        }
    }

    /* ===== 賣家訂單卡片頁 ===== */
    .seller-orders-page{
        max-width: 1100px;
        margin: 0 auto;
        padding: 20px 16px 40px;
    }

    .page-title{
        font-size: 28px;
        font-weight: 800;
        margin-bottom: 20px;
        color: #222;
    }

    .order-card-list{
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .order-card{
        background: #fff;
        border-radius: 16px;
        padding: 18px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
        border: 1px solid #eee;
    }

    .order-card-top{
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }

    .order-label{
        font-size: 13px;
        color: #888;
        margin-bottom: 4px;
    }

    .order-value{
        font-size: 18px;
        font-weight: 800;
        color: #222;
    }

    .order-status-badge{
        padding: 8px 12px;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
    }

    .status-waiting{
        background: #fff3cd;
        color: #9a6700;
    }

    .status-paid{
        background: #d1fae5;
        color: #065f46;
    }

    .status-completed{
        background: #dbeafe;
        color: #1d4ed8;
    }

    .status-cancelled{
        background: #fee2e2;
        color: #b91c1c;
    }

    .order-card-body{
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .order-row{
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid #f1f1f1;
    }

    .order-row:last-child{
        border-bottom: none;
    }

    .order-row span{
        color: #666;
        font-size: 14px;
    }

    .order-row strong{
        color: #222;
        font-size: 15px;
        text-align: right;
        word-break: break-word;
    }

    .fee-text{
        color: #dc2626;
    }

    .income-text{
        color: #16a34a;
    }

    .empty-order-box{
        background: #fff;
        border-radius: 16px;
        padding: 30px;
        text-align: center;
        color: #666;
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    }

/* 平板 */
    @media (max-width: 900px){
        .order-card-list{
            grid-template-columns: 1fr;
        }
    }

/* 手機 */
    @media (max-width: 600px){
        .seller-orders-page{
            padding: 16px 12px 30px;
        }

        .page-title{
            font-size: 22px;
            margin-bottom: 16px;
        }

        .order-card{
            padding: 14px;
            border-radius: 14px;
        }

        .order-card-top{
            flex-direction: column;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .order-value{
            font-size: 16px;
        }

        .order-row{
            align-items: flex-start;
            flex-direction: column;
            gap: 6px;
            padding: 10px 0;
        }

        .order-row strong{
            text-align: left;
            font-size: 14px;
        }

        .order-status-badge{
            font-size: 12px;
            padding: 7px 10px;
        }
    }

    /* ===== 首頁影片背景 ===== */
    .home-video-wrap{
        position: relative;
        min-height: 100vh;
        width: 100%;
        overflow: hidden;
    }

/* 背景影片 */
    .home-bg-video{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -3;
    }

/* 黑色遮罩 */
    .home-video-overlay{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.45);
        z-index: -2;
    }

/* 首頁 hero 區 */
    .hero{
        position: relative;
        z-index: 2;
        text-align: center;
        color: #fff;
        padding: 140px 20px 90px;
        max-width: 1100px;
        margin: 0 auto;
        background: transparent;   /* 不要藍底 */
        border-radius: 0;          /* 不要卡片圓角 */
        box-shadow: none;          /* 不要卡片陰影 */
    }

    .hero h1{
        font-size: 52px;
        font-weight: 800;
        margin-bottom: 16px;
        text-shadow: 0 4px 20px rgba(0,0,0,0.35);
    }   

    .hero h2{
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 14px;
        color: #f8f8f8;
        text-shadow: 0 4px 20px rgba(0,0,0,0.35);
    }

    .hero p{
        font-size: 18px;
        margin-bottom: 24px;
        color: #f2f2f2;
        text-shadow: 0 4px 20px rgba(0,0,0,0.35);
    }

    .hero-info{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-top: 16px;
    }

    .hero-info span{
        background: rgba(255,255,255,0.12);
        border: 1px solid rgba(255,255,255,0.18);
        backdrop-filter: blur(8px);
        color: #fff;
        padding: 10px 16px;
        border-radius: 999px;
        font-size: 14px;
    }

/* hero 按鈕 */
    .hero-btn{
        border: none;
        background: linear-gradient(135deg, #00c2a8, #00a7ff);
        color: #fff;
        padding: 14px 28px;
        border-radius: 999px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
        transition: 0.25s;
    }

    .hero-btn:hover{
        transform: translateY(-2px);
        opacity: 0.95;
    }

/* 最新商品區塊 */
    .home-products-section{
        position: relative;
        z-index: 2;
        max-width: 1280px;
        margin: 20px auto 60px;
        padding: 0 16px;
    }

    .home-products-section h1{
        color: #fff;
        margin-bottom: 20px;
        text-shadow: 0 4px 20px rgba(0,0,0,0.35);
    }

/* 商品卡加一點毛玻璃感 */
    .product-card{
        background: rgba(255,255,255,0.92);
        backdrop-filter: blur(10px);
        border-radius: 18px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

/* 手機版 */
    @media (max-width: 768px){
        .hero{
            position: relative;
            z-index: 2;
            text-align: center;
            color: #fff;
            padding: 140px 20px 90px;
            max-width: 1100px;
            margin: 0 auto;
            background: transparent;   /* 不要藍底 */
            border-radius: 0;          /* 不要卡片圓角 */
            box-shadow: none;          /* 不要卡片陰影 */
        }

        .hero h1{
            font-size: 32px;
        }

        .hero h2{
            font-size: 20px;
        }

        .hero p{
            font-size: 15px;
        }

        .hero-info{
            gap: 8px;
        }

        .hero-info span{
            font-size: 13px;
            padding: 8px 12px;
        }

        .hero-btn{
            width: 100%;
            max-width: 260px;
            padding: 13px 20px;
            font-size: 15px;
        }

        .home-products-section{
            margin-top: 10px;
        }

        .home-products-section h1{
            font-size: 24px;
        }
    }

    /* ===== 首頁影片背景 ===== */
    .home-page{
        width: 100%;
        margin: 0;
        padding: 0;
        background: transparent;
    }

    .home-video-wrap{
        position: relative;
        min-height: 100vh;
        width: 100%;
        overflow: hidden;
        padding-top: 72px; /* 避開上方 nav */
        background: transparent;
    }

/* 背景影片 */
    .home-bg-video{
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -3;
    }

/* 深色遮罩 */
    .home-video-overlay{
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.52);
        z-index: -2;
    }

/* 首頁主視覺 */
    .hero{
        position: relative;
        z-index: 2;
        text-align: center;
        color: #fff;
        padding: 140px 20px 90px;
        max-width: 1100px;
        margin: 0 auto;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    .hero h1{
        font-size: 56px;
        font-weight: 800;
        margin-bottom: 16px;
        text-shadow: 0 6px 30px rgba(0,0,0,0.45);
    }

    .hero h2{
        font-size: 30px;
        font-weight: 700;
        margin-bottom: 16px;
        color: #f8f8f8;
        text-shadow: 0 6px 30px rgba(0,0,0,0.45);
    }

    .hero p{
        font-size: 18px;
        margin-bottom: 24px;
        color: #f2f2f2;
        text-shadow: 0 6px 30px rgba(0,0,0,0.45);
    }

/* 四個特色標籤 */
    .hero-info{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-top: 18px;
    }

    .hero-info span{
        background: rgba(255,255,255,0.12);
        border: 1px solid rgba(255,255,255,0.18);
        backdrop-filter: blur(10px);
        color: #fff;
        padding: 10px 16px;
        border-radius: 999px;
        font-size: 14px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    }

/* 逛商城按鈕 */
    .hero-btn{
        border: none;
        background: linear-gradient(135deg, #00c2a8, #00a7ff);
        color: #fff;
        padding: 14px 30px;
        border-radius: 999px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 12px 30px rgba(0,0,0,0.28);
        transition: 0.25s;
    }

    .hero-btn:hover{
        transform: translateY(-2px);
        opacity: 0.95;
    }

/* 最新商品區 */
    .home-products-section{
        position: relative;
        z-index: 2;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 16px 60px;
    }

    .home-products-section h1{
        color: #fff;
        margin-bottom: 22px;
        text-shadow: 0 6px 30px rgba(0,0,0,0.45);
    }

/* 商品卡片做毛玻璃 */
    .product-card{
        background: rgba(255,255,255,0.92);
        backdrop-filter: blur(10px);
        border-radius: 18px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    }

/* 手機版 */
    @media (max-width: 768px){
        .home-video-wrap{
            padding-top: 64px;
        }

        .hero{
            padding: 90px 16px 50px;
        }

        .hero h1{
            font-size: 32px;
        }

        .hero h2{
            font-size: 20px;
        }

        .hero p{
            font-size: 15px;
        }

        .hero-info{
            gap: 8px;
        }

        .hero-info span{
            font-size: 13px;
            padding: 8px 12px;
        }

        .hero-btn{
            width: 100%;
            max-width: 260px;
            padding: 13px 20px;
            font-size: 15px;
        }

        .home-products-section h1{
            font-size: 24px;
        }
    }

    /* =========================
   玻璃感 Navbar
========================= */

/* 桌機/全站導覽列 */
    .main-navbar{
        position: sticky;
        top: 0;
        z-index: 9999;

        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;

        padding: 14px 20px;
        margin: 0;

        background: rgba(15, 18, 30, 0.72);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);

        border-bottom: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    }

/* nav 裡所有連結 */
    .main-navbar a{
        color: #fff;
        text-decoration: none;
        font-size: 15px;
        font-weight: 600;

        padding: 10px 14px;
        border-radius: 12px;

        transition: all 0.22s ease;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

/* hover 效果 */
    .main-navbar a:hover{
        background: rgba(255,255,255,0.10);
        color: #7ee7ff;
        transform: translateY(-1px);
    }

/* 有通知數字那個訊息中心不要擠掉 */
    .main-navbar a span{
        margin-left: 4px;
        display: inline-block;
    }

/* ===== 漢堡按鈕 ===== */
    #menu-btn{
        position: fixed;
        top: 14px;
        right: 14px;
        z-index: 10001;

        width: 46px;
        height: 46px;
        border: none;
        border-radius: 14px;

        background: rgba(15, 18, 30, 0.72);
        color: #fff;
        font-size: 22px;
        cursor: pointer;

        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);

        box-shadow: 0 10px 24px rgba(0,0,0,0.2);
        border: 1px solid rgba(255,255,255,0.08);

        display: none; /* 電腦先隱藏，手機才顯示 */
    }

/* 漢堡按鈕 hover */
    .menu-btn:hover{
        background: rgba(255,255,255,0.12);
    }

/* ===== 手機側邊選單 ===== */
    .mobile-menu{
        position: fixed;
        top: 0;
        right: -320px;
        width: 280px;
        max-width: 82vw;
        height: 100vh;
        z-index: 10000;

        padding: 80px 16px 20px;
        box-sizing: border-box;

        background: rgba(12, 16, 28, 0.88);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        border-left: 1px solid rgba(255,255,255,0.08);
        box-shadow: -12px 0 30px rgba(0,0,0,0.28);

        transition: right 0.28s ease;
        overflow-y: auto;
    }

/* 手機選單連結 */
    .mobile-menu a{
        display: flex;
        align-items: center;
        gap: 8px;

        color: #fff;
        text-decoration: none;
        font-size: 15px;
        font-weight: 600;

        padding: 14px 14px;
        margin-bottom: 10px;
        border-radius: 14px;

        background: rgba(255,255,255,0.04);
        transition: all 0.2s ease;
    }

    .mobile-menu a:hover{
        background: rgba(255,255,255,0.10);
        color: #7ee7ff;
    }

/* ===== 浮動聊天室按鈕也順手美化 ===== */
    .chat-float{
        position: fixed;
        right: 18px;
        bottom: 18px;
        z-index: 9998;

        width: 58px;
        height: 58px;
        border-radius: 50%;

        display: flex;
        align-items: center;
        justify-content: center;

        text-decoration: none;
        font-size: 26px;
        color: #fff;

        background: linear-gradient(135deg, #00c2a8, #00a7ff);
        box-shadow: 0 14px 30px rgba(0,0,0,0.24);
    }

/* ===== 首頁如果有影片，避免被 nav 壓住 ===== */
    .home-page{
        padding-top: 0;
    }

/* =========================
   RWD
========================= */

/* 手機版 */
    @media (max-width: 768px){

    /* 手機隱藏上方整排 nav，改用漢堡 */
        .main-navbar{
            display: none;
        }

        #menu-btn{
            display: block;
        }

        .container{
            padding-top: 18px;
        }
    }

/* 桌機版 */
    @media (min-width: 769px){
        .mobile-menu{
            display: none;
        }
    }

    .message-header{
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    
    .back-btn{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #111827;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 10px 14px;
        font-size: 14px;
        font-weight: 700;
        box-shadow: 0 4px 14px rgba(0,0,0,0.05);
        transition: 0.2s ease;
    }
    
    .back-btn:hover{
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    }

    /* 右下角聊天按鈕未讀紅點 */
.chat-float{
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9998;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 26px;
    color: #fff;
    background: linear-gradient(135deg, #00c2a8, #00a7ff);
    box-shadow: 0 14px 30px rgba(0,0,0,0.24);
    position: fixed;
}

.chat-float-badge{
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    border: 2px solid #fff;
}
/* ===== 賣家控制台 ===== */
/* ===== 賣家控制台（隔離版，不影響其他頁） ===== */
.seller-dashboard-page{
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0 40px;
}

.seller-dashboard-page .dashboard-header{
    margin-bottom: 24px;
}

.seller-dashboard-page .dashboard-header h1{
    font-size: 34px;
    margin: 0 0 8px;
    color: #1f2937;
}

.seller-dashboard-page .dashboard-header p{
    color: #6b7280;
    margin: 0;
    font-size: 15px;
}

.seller-dashboard-page .dashboard-stats-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.seller-dashboard-page .dashboard-stat-card{
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.seller-dashboard-page .dashboard-stat-card .stat-label{
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.seller-dashboard-page .dashboard-stat-card .stat-value{
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    word-break: break-word;
}

.seller-dashboard-page .dashboard-section-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.seller-dashboard-page .dashboard-section-card{
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.seller-dashboard-page .dashboard-section-card h2{
    color: #111827;
    margin: 0 0 10px;
    font-size: 22px;
}

.seller-dashboard-page .dashboard-section-card p{
    color: #6b7280;
    line-height: 1.7;
    margin: 0 0 18px;
    min-height: 52px;
}

.seller-dashboard-page .dashboard-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.seller-dashboard-page .dashboard-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    color: #111827;
    font-weight: 700;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    transition: 0.2s ease;
}

.seller-dashboard-page .dashboard-btn:hover{
    transform: translateY(-2px);
    background: #e5e7eb;
}

.seller-dashboard-page .dashboard-btn-primary{
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border: none;
    color: #fff;
}

.seller-dashboard-page .dashboard-btn-primary:hover{
    opacity: 0.92;
}

/* 平板 */
@media (max-width: 1100px){
    .seller-dashboard-page .dashboard-stats-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .seller-dashboard-page .dashboard-section-grid{
        grid-template-columns: 1fr;
    }
}

/* 手機 */
@media (max-width: 640px){
    .seller-dashboard-page{
        padding: 12px 0 30px;
    }

    .seller-dashboard-page .dashboard-header h1{
        font-size: 28px;
    }

    .seller-dashboard-page .dashboard-stats-grid{
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .seller-dashboard-page .dashboard-stat-card{
        padding: 18px;
    }

    .seller-dashboard-page .dashboard-stat-card .stat-value{
        font-size: 24px;
    }

    .seller-dashboard-page .dashboard-section-card{
        padding: 18px;
    }

    .seller-dashboard-page .dashboard-section-card h2{
        font-size: 20px;
    }

    .seller-dashboard-page .dashboard-btn{
        width: 100%;
    }
}
/* ===== 管理員控制台首頁 ===== */
.admin-dashboard-page{
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0 40px;
}

.admin-dashboard-header{
    margin-bottom: 24px;
}

.admin-dashboard-header h1{
    margin: 0 0 8px;
    font-size: 34px;
    color: #1f2937;
}

.admin-dashboard-header p{
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

.admin-dashboard-stats{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.admin-stat-card{
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.admin-stat-label{
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.admin-stat-value{
    font-size: 30px;
    font-weight: 800;
    color: #111827;
}

.admin-dashboard-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.admin-dashboard-card{
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.admin-dashboard-card h2{
    margin: 0 0 10px;
    color: #111827;
    font-size: 22px;
}

.admin-dashboard-card p{
    margin: 0 0 18px;
    color: #6b7280;
    line-height: 1.7;
    min-height: 60px;
}

.admin-dashboard-actions{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-dashboard-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    color: #111827;
    font-weight: 700;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    transition: 0.2s ease;
}

.admin-dashboard-btn:hover{
    transform: translateY(-2px);
    background: #e5e7eb;
}

.admin-dashboard-btn-primary{
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border: none;
    color: #fff;
}

.admin-dashboard-btn-primary:hover{
    opacity: 0.92;
}

@media (max-width: 1100px){
    .admin-dashboard-stats{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard-grid{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px){
    .admin-dashboard-page{
        padding: 12px 0 30px;
    }

    .admin-dashboard-header h1{
        font-size: 28px;
    }

    .admin-dashboard-stats{
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .admin-stat-card,
    .admin-dashboard-card{
        padding: 18px;
    }

    .admin-stat-value{
        font-size: 24px;
    }

    .admin-dashboard-btn{
        width: 100%;
    }
}
/* ===== 管理員結算管理頁 ===== */
.admin-settlement-page{
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 0 40px;
}

.admin-settlement-header{
    margin-bottom: 18px;
}

.admin-settlement-header h1{
    margin: 0 0 8px;
    font-size: 34px;
    color: #111827;
}

.admin-settlement-header p{
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

.admin-settlement-top-actions{
    margin-top: 14px;
}

.admin-back-btn{
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
    transition: 0.2s ease;
}

.admin-back-btn:hover{
    background: #e5e7eb;
    transform: translateY(-2px);
}

.admin-settlement-filters{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0 18px;
}

.settlement-filter-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: #111827;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    transition: 0.2s ease;
}

.settlement-filter-btn:hover{
    background: #e5e7eb;
}

.settlement-filter-btn.active{
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #fff;
    border: none;
}

.admin-settlement-table-wrap{
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.admin-settlement-table{
    width: 100%;
    border-collapse: collapse;
    min-width: 1050px;
}

.admin-settlement-table thead{
    background: #f9fafb;
}

.admin-settlement-table th,
.admin-settlement-table td{
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
}

.admin-settlement-table th{
    color: #374151;
    font-weight: 800;
    white-space: nowrap;
}

.admin-settlement-table td{
    color: #111827;
}

.fee-text{
    color: #dc2626;
    font-weight: 700;
}

.income-text{
    color: #16a34a;
    font-weight: 700;
}

.settlement-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.settlement-badge.done{
    background: #dcfce7;
    color: #166534;
}

.settlement-badge.pending{
    background: #fee2e2;
    color: #991b1b;
}

.settled-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    transition: 0.2s ease;
}

.settled-btn:hover{
    opacity: 0.92;
    transform: translateY(-2px);
}

.settled-btn.disabled{
    background: #d1d5db;
    color: #6b7280;
    cursor: default;
    pointer-events: none;
}

.admin-empty-box{
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

@media (max-width: 768px){
    .admin-settlement-page{
        padding: 12px 0 30px;
    }

    .admin-settlement-header h1{
        font-size: 28px;
    }

    .admin-settlement-filters{
        flex-direction: column;
    }

    .settlement-filter-btn,
    .admin-back-btn{
        width: 100%;
    }
}

.admin-back-btn:hover{
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* ===== 管理員商品審核頁 ===== */
.admin-products-page{
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 0 40px;
}

.admin-products-header{
    margin-bottom: 18px;
}

.admin-products-header h1{
    margin: 0 0 8px;
    font-size: 34px;
    color: #111827;
}

.admin-products-header p{
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

.admin-products-top-actions{
    margin-top: 14px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-go-settlement-btn{
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #fff;
    transition: 0.2s ease;
}

.admin-go-settlement-btn:hover{
    opacity: 0.92;
    transform: translateY(-2px);
}

.admin-products-table-wrap{
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.admin-products-table{
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.admin-products-table thead{
    background: #f9fafb;
}

.admin-products-table th,
.admin-products-table td{
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
}

.admin-products-table th{
    color: #374151;
    font-weight: 800;
    white-space: nowrap;
}

.admin-products-table td{
    color: #111827;
}

.verify-badge,
.status-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

/* 驗證狀態 */
.verify-badge.verified{
    background: #dcfce7;
    color: #166534;
}

.verify-badge.unverified{
    background: #fee2e2;
    color: #991b1b;
}

/* 商品狀態 */
.status-badge.pending{
    background: #fef3c7;
    color: #92400e;
}

.status-badge.approved{
    background: #dcfce7;
    color: #166534;
}

.status-badge.sold{
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.removed{
    background: #e5e7eb;
    color: #374151;
}

.status-badge.unknown{
    background: #e0f2fe;
    color: #075985;
}

.admin-product-actions{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-product-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: 0.2s ease;
    white-space: nowrap;
}

.admin-product-btn:hover{
    transform: translateY(-2px);
}

.admin-product-btn.view{
    background: #eff6ff;
    color: #1d4ed8;
}

.admin-product-btn.approve{
    background: #dcfce7;
    color: #166534;
}

.admin-product-btn.remove{
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 768px){
    .admin-products-page{
        padding: 12px 0 30px;
    }

    .admin-products-header h1{
        font-size: 28px;
    }

    .admin-products-top-actions{
        flex-direction: column;
    }

    .admin-back-btn,
    .admin-go-settlement-btn{
        width: 100%;
        text-align: center;
    }
}

/* ===== 管理員商品詳細頁 ===== */
.admin-product-page{
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0 40px;
}

.admin-product-header{
    margin-bottom: 20px;
}

.admin-product-header h1{
    margin: 0 0 8px;
    font-size: 34px;
    color: #111827;
}

.admin-product-header p{
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

.admin-product-top-actions{
    margin-top: 14px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-product-detail-card{
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    padding: 24px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
}

.admin-product-image-box{
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.admin-product-image-box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-product-info-box h2{
    margin: 0 0 18px;
    font-size: 30px;
    color: #111827;
}

.admin-product-info-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.admin-product-info-item{
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px 16px;
}

.admin-product-info-item span{
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 6px;
}

.admin-product-info-item strong{
    color: #111827;
    font-size: 16px;
}

.admin-product-desc-box{
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 20px;
}

.admin-product-desc-box h3{
    margin: 0 0 10px;
    color: #111827;
    font-size: 18px;
}

.admin-product-desc-box p{
    margin: 0;
    color: #374151;
    line-height: 1.8;
    white-space: pre-wrap;
}

.admin-product-action-row{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-product-action-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    transition: 0.2s ease;
}

.admin-product-action-btn:hover{
    transform: translateY(-2px);
}

.admin-product-action-btn.approve{
    background: #dcfce7;
    color: #166534;
}

.admin-product-action-btn.remove{
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 980px){
    .admin-product-detail-card{
        grid-template-columns: 1fr;
    }

    .admin-product-image-box{
        min-height: 280px;
    }
}

@media (max-width: 640px){
    .admin-product-page{
        padding: 12px 0 30px;
    }

    .admin-product-header h1{
        font-size: 28px;
    }

    .admin-product-info-grid{
        grid-template-columns: 1fr;
    }

    .admin-product-top-actions{
        flex-direction: column;
    }

    .admin-back-btn{
        width: 100%;
        text-align: center;
    }

    .admin-product-action-btn{
        width: 100%;
    }
}

.admin-stat-card.stat-link{
    display: block;
    text-decoration: none;
    transition: 0.2s ease;
}

.admin-stat-card.stat-link:hover{
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.admin-stat-card.stat-link .admin-stat-label,
.admin-stat-card.stat-link .admin-stat-value{
    color: inherit;
}

.admin-products-filters{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 18px;
}

.admin-products-filter-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: #111827;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    transition: 0.2s ease;
}

.admin-products-filter-btn:hover{
    background: #e5e7eb;
}

.admin-products-filter-btn.active{
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #fff;
    border: none;
}

.member-page{
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 16px 40px;
}

.member-header{
    margin-bottom: 24px;
}

.member-header h1{
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #111827;
}

.member-header p{
    color: #6b7280;
    font-size: 15px;
}

.member-profile-card{
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.08);
    border: 1px solid #eef2f7;
    margin-bottom: 24px;
}

.member-avatar{
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399, #22c55e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    flex-shrink: 0;
}

.member-profile-info h2{
    margin: 0 0 6px;
    font-size: 28px;
    color: #111827;
}

.member-profile-info p{
    margin: 0 0 10px;
    color: #6b7280;
}

.member-badge{
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.member-badge.admin{
    background: #fee2e2;
    color: #b91c1c;
}

.member-badge.normal{
    background: #dcfce7;
    color: #166534;
}

.member-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.member-card{
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.06);
    border: 1px solid #eef2f7;
    transition: 0.2s ease;
}

.member-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15,23,42,0.10);
}

.member-card h3{
    margin: 0 0 10px;
    font-size: 22px;
    color: #111827;
}

.member-card p{
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.logout-card{
    border: 1px solid #fecaca;
    background: #fff7f7;
}

@media (max-width: 768px){
    .member-grid{
        grid-template-columns: 1fr;
    }

    .member-header h1{
        font-size: 28px;
    }

    .member-profile-card{
        flex-direction: column;
        align-items: flex-start;
    }
}

.admin-users-page{
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 16px 40px;
}

.admin-users-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-users-header h1{
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: #111827;
}

.admin-back-btn{
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111827;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}

.admin-users-table-wrap{
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.08);
    overflow-x: auto;
    border: 1px solid #eef2f7;
}

.admin-users-table{
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-users-table th,
.admin-users-table td{
    padding: 16px 14px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.admin-users-table th{
    background: #f8fafc;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
}

.admin-users-table td{
    color: #111827;
    font-size: 15px;
}

.role-badge{
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.role-badge.admin{
    background: #fee2e2;
    color: #b91c1c;
}

.role-badge.normal{
    background: #dcfce7;
    color: #166534;
}

.admin-user-actions{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.table-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 14px;
}

.danger-btn{
    background: #fef2f2;
    color: #dc2626;
}