/* ==================================================
   💎 プレミアムボタン
================================================== */
.premium-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.premium-left {
    flex: 1;
    min-width: 300px;
}

.premium-right {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 25px;
    border-radius: 12px;
    line-height: 1.7;
}

.premium-right h2 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.premium-right .info-list {
    margin: 15px 0;
    padding-left: 20px;
}

.premium-right .info-list li {
    margin: 6px 0;
}

.premium-right a {
    color: #1e90ff;
    word-break: break-all;
}

.premium-right .info-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #bbb;
}

.premium-btn {
    display: inline-block;
    margin-top: 30px;
    margin-left: 20px;
    padding: 14px 32px;
    background-color: #1e90ff;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.2s;
    font-weight: bold;
}

.premium-btn:hover {
    background-color: #0b78d1;
}

.premium-section {
    max-width: 1200px;
    margin: 60px auto;
    text-align: center;
    line-height: 1.8;
}

.premium-section h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.premium-section .plans {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.plan-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    width: 260px;
    padding: 20px;
    transition: 0.3s;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.plan-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.plan-card p.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1e90ff;
    margin: 10px 0;
}

.plan-card ul {
    text-align: left;
    margin: 0 auto;
    display: inline-block;
    padding-left: 0;
    list-style-position: inside;
}

.plan-card li {
    list-style: none;
    margin: 6px 0;
    padding-left: 0;
}

.plan-card form {
    margin-top: 15px;
}

.plan-card select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    transition: 0.2s;
}

body.dark-mode .plan-card select {
    background: rgba(20, 20, 30, 0.9);
    color: #eee;
    border-color: rgba(255, 255, 255, 0.2);
}

.plan-card select:hover,
.plan-card select:focus {
    border-color: #1e90ff;
    outline: none;
}

.plan-card .subscribe-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px 0;
    border: none;
    font-size: 1rem;
    background: #1e90ff;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.plan-card .subscribe-btn:hover {
    background: #0b78d1;
}

/* ログインしていない状態のグレーボタン */
.plan-card .login-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px 0;
    font-size: 1rem;
    background: #999;
    color: #fff;
    border-radius: 6px;
    cursor: not-allowed;
    opacity: 0.7;
}

/* サーバーがない場合のメッセージ */
.plan-card .no-server {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #aaa;
}

.subscribe-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #1e90ff;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.subscribe-btn:hover {
    background: #0b78d1;
}

.note {
    color: #888;
    font-size: 0.9rem;
    margin-top: 30px;
}

.btn-return {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 24px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-return:hover {
    background: #444;
}

/* ==================================================
   💎 プレミアム管理ページ (/premium/manage)
================================================== */
.success-page .success-content {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

/* カード全体（上記の固定幅が消えると正常に横並びになる） */
.success-page .server-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;

    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
}

/* カード要素 */
.success-page .server-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
}

.success-page .server-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ボタン */
.success-page .server-item a.unsubscribe-btn {
    width: 100%;
    display: block;
    margin-top: 12px;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
}

/* ==================================================
   💎 寄付ページ (/donate)
================================================== */
.donate-section {
    text-align: center;
    margin-top: 40px;
}

.donate-card {
    background: #1a1b1e;
    border-radius: 14px;
    padding: 25px;
    border: 1px solid #2a2d31;
    width: 300px;
    margin: 20px auto;
    transition: 0.25s;
}

.donate-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.donate-price {
    font-size: 1.8rem;
    color: #4ea5ff;
    margin-bottom: 15px;
}

.donate-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #5865f2;
    color: white;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.donate-btn:hover {
    background: #6b74ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.note {
    margin-top: 20px;
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 解約 */
.success-page .server-item a.unsubscribe-btn {
    background: #a30000;
    color: #fff;
}

/* === ダークモード対応 === */
body.dark-mode .premium-right {
    background: rgba(40, 40, 50, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .footer {
    color: #aaa;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .footer a {
    color: #66b3ff;
}

body.dark-mode .footer a:hover {
    color: #99ccff;
}