.sam-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
    color: #e0e0e0;
}

/* Cards */
.sam-card {
    background: rgba(20, 20, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.sam-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.sam-subtitle {
    margin: 20px 0 12px 0;
    font-size: 16px;
    color: #ccc;
}

/* Forms */
.sam-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sam-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.sam-field label {
    font-size: 13px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sam-field input,
.sam-field select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 10px 12px;
    color: #e0e0e0;
    font-size: 15px;
    transition: border-color 0.2s;
}

.sam-field input:focus,
.sam-field select:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.25);
}

.sam-field-row {
    display: flex;
    gap: 16px;
}

/* EULA */
.sam-eula-section {
    margin-top: 8px;
}

.sam-eula-label {
    font-size: 13px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.sam-eula-scroll {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px;
    padding: 20px !important;
    height: 300px !important;
    max-height: 300px !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    color: #ccc;
    font-size: 13px;
    line-height: 1.6;
    display: block !important;
}

.sam-eula-scroll h3 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 12px 0;
}

.sam-eula-scroll h4 {
    color: #e0e0e0;
    font-size: 15px;
    margin: 20px 0 8px 0;
}

.sam-eula-scroll p {
    margin: 8px 0;
}

.sam-eula-scroll ol {
    padding-left: 24px;
    margin: 8px 0;
}

.sam-eula-scroll li {
    margin-bottom: 4px;
}

.sam-eula-scroll-hint {
    color: #f39c12;
    font-size: 13px;
    margin: 8px 0 4px 0;
    font-style: italic;
}

.sam-eula-checkbox-field {
    margin-top: 8px;
}

.sam-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
}

.sam-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6c5ce7;
    cursor: pointer;
}

.sam-checkbox-label input[type="checkbox"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Buttons */
.sam-btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sam-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sam-btn-primary {
    background: #6c5ce7;
    color: #fff;
}

.sam-btn-primary:hover:not(:disabled) {
    background: #5a4bd1;
}

.sam-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sam-btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
}

.sam-btn-danger {
    background: rgba(231, 76, 60, 0.8);
    color: #fff;
}

.sam-btn-danger:hover:not(:disabled) {
    background: rgba(231, 76, 60, 1);
}

.sam-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

/* Messages */
.sam-message {
    display: none;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 12px;
}

.sam-msg-success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.sam-msg-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* Links */
.sam-links {
    margin-top: 16px;
    display: flex;
    gap: 16px;
    justify-content: center;
}

.sam-links a {
    color: #6c5ce7;
    text-decoration: none;
    font-size: 14px;
}

.sam-links a:hover {
    text-decoration: underline;
}

/* Info Grid */
.sam-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sam-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sam-info-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sam-info-value {
    font-size: 15px;
    color: #e0e0e0;
}

/* Subscription Status */
.sam-subscription-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sam-tier-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sam-tier-noble {
    background: linear-gradient(135deg, #636e72, #b2bec3);
    color: #2d3436;
}

.sam-tier-leader {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    color: #2d3436;
}

.sam-tier-sovereign {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
}

.sam-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.sam-status-active {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.sam-status-canceled {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.sam-status-expired {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.sam-no-sub {
    color: #888;
    font-style: italic;
    margin-bottom: 8px;
}

.sam-cancel-notice {
    color: #f39c12;
    font-size: 14px;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.25);
    border-radius: 4px;
}

/* Tier Cards */
.sam-tier-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sam-tier-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.sam-tier-card:hover {
    transform: translateY(-2px);
}

.sam-tier-noble-card:hover {
    border-color: #b2bec3;
}

.sam-tier-leader-card:hover {
    border-color: #f1c40f;
}

.sam-tier-sovereign-card:hover {
    border-color: #a29bfe;
}

.sam-tier-name {
    margin: 0 0 4px 0;
    font-size: 20px;
    color: #fff;
}

.sam-tier-label {
    margin: 0 0 16px 0;
    color: #888;
    font-size: 13px;
}

/* Characters */
.sam-characters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sam-character-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* Logout */
.sam-logout-row {
    text-align: center;
    margin-top: 8px;
}

/* Loading */
.sam-loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}

/* Modal */
.sam-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.sam-modal {
    background: rgba(20, 20, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 30px;
    max-width: 460px;
    width: 90%;
}

.sam-modal-title {
    margin: 0 0 16px 0;
    font-size: 20px;
    color: #fff;
}

.sam-modal-body p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.sam-modal-benefits {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
}

.sam-modal-benefits h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sam-modal-benefits ul {
    margin: 0;
    padding-left: 20px;
    color: #2ecc71;
    font-size: 14px;
}

.sam-modal-benefits li {
    margin-bottom: 4px;
}

.sam-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 600px) {
    .sam-container {
        padding: 12px;
    }

    .sam-card {
        padding: 20px;
    }

    .sam-field-row {
        flex-direction: column;
    }

    .sam-info-grid {
        grid-template-columns: 1fr;
    }

    .sam-tier-cards {
        grid-template-columns: 1fr;
    }

    .sam-characters-grid {
        grid-template-columns: 1fr;
    }

    .sam-btn-group {
        flex-direction: column;
    }
}
